package cn.taichoo.server.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 手机打包业务-启动图参数设置对象 tai_pack_startup
 *
 * @author Wuzh
 * @date 2025-03-17
 */
@Data
@TableName("tai_pack_startup" )
public class PackStartup extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    private Long id;

    /**
     * APP基础表Id
     */
    @Schema(description = "APP基础表Id")
    @Excel(name = "APP基础表Id" )
    @TableField("app_base_id")
    private Long appBaseId;

    /**
     * 启动图类型;1:图片;2:视频
     */
    @Schema(description = "启动图类型;1:图片;2:视频")
    @Excel(name = "启动图类型;1:图片;2:视频" )
    @TableField("type")
    private Integer type;

    /**
     * 跳转URL地址
     */
    @Schema(description = "跳转URL地址")
    @Excel(name = "跳转URL地址" )
    @TableField("url")
    private String url;

    /**
     * 模块,跳转目标
     */
    @Schema(description = "模块,跳转目标")
    @Excel(name = "模块,跳转目标" )
    @TableField("modules")
    private Integer modules;

    /**
     * 有效期开始时间
     */
    @Schema(description = "有效期开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd" )
    @Excel(name = "有效期开始时间", width = 30, dateFormat = "yyyy-MM-dd" )
    @TableField("start_time")
    private Date startTime;

    /**
     * 有效期结束时间
     */
    @Schema(description = "有效期结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd" )
    @Excel(name = "有效期结束时间", width = 30, dateFormat = "yyyy-MM-dd" )
    @TableField("end_time")
    private Date endTime;

    /**
     * 启动图时长，倒计时秒
     */
    @Schema(description = "启动图时长，倒计时秒")
    @Excel(name = "启动图时长，倒计时秒" )
    @TableField("duration")
    private Integer duration;

    /**
     * 是否删除
     */
    @Schema(description = "是否删除")
    @Excel(name = "是否删除" )
    @TableField("deleted")
    private Integer deleted;

}
